package com.ai.wxy.spring.user.query;

import com.ai.spring.common.annotation.Query;
import com.ai.spring.common.query.IQueryCriteria;
import lombok.Data;

/**
 * 用户查询对象
 *
 * @author 石头
 * @Date 2019/10/28
 * @Version 1.0
 **/
@Data
public class UserQuery implements IQueryCriteria {
    @Query
    private Long id;
    @Query
    private String username;
    @Query(propName = "username",type = Query.Type.RIGHT_LIKE)
    private String wildName;
    @Query
    private String email;
    @Query
    private String phone;
    @Query
    private Integer status;
    @Query
    private Boolean enabled;
    /**分组字段*/
    private String groupBy;
    @Override
    public String groupBy() {
        return groupBy;
    }
}
